﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PartyFinderMP.master" AutoEventWireup="true" CodeFile="CreateUser.aspx.cs" Inherits="CreateUser" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table>
            <tr>
                <td>
                    <h3>Opret profil</h3>
                </td>
            </tr>
        </table>
        <asp:CreateUserWizard ID="CreateUserWizard1" ContinueDestinationPageUrl="~/Index/CreatePerson.aspx" runat="server" CreateUserButtonStyle-Width="220px" CreateUserButtonStyle-CssClass="btn">
<CreateUserButtonStyle CssClass="btn" Width="220px"></CreateUserButtonStyle>
            <WizardSteps>
                <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                    <ContentTemplate>
                        <table>

                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="UserName"></asp:TextBox>
                                                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" WatermarkText="Brugernavn" TargetControlID="Username" runat="server"></asp:TextBoxWatermarkExtender>
                                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="UserName" ToolTip="User Name is required."
                                                        ID="UserNameRequired" ValidationGroup="Createuserwizard1" ErrorMessage="User Name is required.">
                            *</asp:RequiredFieldValidator>
                                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <td>
                                                    <asp:TextBox runat="server" TextMode="Password" ID="Password"></asp:TextBox>
                                                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" WatermarkCssClass="watermark_psw" WatermarkText=" " TargetControlID="Password" runat="server"></asp:TextBoxWatermarkExtender>
                                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="Password" ToolTip="Password is required."
                                                        ID="PasswordRequired" ValidationGroup="Createuserwizard1" ErrorMessage="Password is required.">
                            *</asp:RequiredFieldValidator>
                                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <td>
                                                    <asp:TextBox runat="server" TextMode="Password" ID="ConfirmPassword"></asp:TextBox>
                                                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" WatermarkCssClass="watermark_confirmpsw" WatermarkText=" " TargetControlID="ConfirmPassword" runat="server"></asp:TextBoxWatermarkExtender>
                                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="ConfirmPassword" ToolTip="Confirm Password is required."
                                                        ID="ConfirmPasswordRequired" ValidationGroup="Createuserwizard1" ErrorMessage="Confirm Password is required.">
                            *</asp:RequiredFieldValidator>
                                                    <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator" ControlToValidate="Email"></asp:CustomValidator>
                                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="Email"></asp:TextBox>
                                                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" WatermarkText="Email" TargetControlID="Email" runat="server"></asp:TextBoxWatermarkExtender>
                                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="Email" ToolTip="Email is required."
                                                        ID="EmailRequired" ValidationGroup="Createuserwizard1" ErrorMessage="Email is required.">
                            *</asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="regexEmailValid" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" runat="server"
                                                    ControlToValidate="Email" ErrorMessage="Invalid Email Format"></asp:RegularExpressionValidator>
                                                </td>
                                        </tr>

                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:CompareValidator runat="server" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                                    ControlToCompare="ConfirmPassword" ControlToValidate="Password" ID="PasswordCompare"
                                                    ValidationGroup="Createuserwizard1">
                                                </asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color: Red;">
                                                <asp:Literal runat="server" EnableViewState="False" ID="FailureText">
                                                </asp:Literal>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:CreateUserWizardStep>

                <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                </asp:CompleteWizardStep>
            </WizardSteps>
        </asp:CreateUserWizard>
    </div>
</asp:Content>

